package com.example.decorator.pancake;

/**
 * 加香肠
 */
public class PancakeAddSausage extends PancakeDecorator {

    public PancakeAddSausage(Pancake pancake) {
        super(pancake);
    }

    @Override
    protected double getPrice() {
        return super.getPrice() + 3;
    }

    @Override
    protected String getName() {
        return super.getName() + "+1根香肠：3元";
    }
}
